def abs(n):
    if n > 0:
        return n
    elif n < 0:
        return -n
    else:
        return 0
